package com.wei.web.demo.biz.portal.controller;

import com.wei.web.client.biz.model.dto.BizDTO;
import com.wei.web.client.biz.model.req.CreateBizCmd;
import com.wei.web.demo.biz.service.BizService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author buhuan.wang
 * @since 2023/1/20
 */
@RestController
@RequestMapping("/biz")
public class BizServiceController {
    @Autowired
    private BizService bizService;

    @ResponseBody
    @RequestMapping("/create")
    public BizDTO create() {
        CreateBizCmd cmd = null;
        return bizService.create(cmd);
    }
}
